/**
 * Copyright (C), 2015-2019, bogewang
 * FileName: MemberLoginService
 * Author:   foren236598164@aliyun.com
 * Date:     2019/9/16 14:06
 * Description: 会员登录服务
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.bogewang.member.service;

import com.alibaba.fastjson.JSONObject;
import com.bogewang.core.base.BaseResponse;
import com.bogewang.member.entity.LoginDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 〈会员登录服务〉
 *
 * @author foren236598164@aliyun.com
 * @create 2019/9/16
 * @since 1.0.0
 */
@Api(tags = "会员登录接口")
public interface MemberLoginService {

    @PostMapping("/login")
    @ApiOperation(value = "会员登录信息接口")
    BaseResponse<JSONObject> login(@RequestBody LoginDTO loginDTO);

    @RequestMapping("/logout")
    @ApiOperation(value = "会员登出接口")
    BaseResponse<JSONObject> loginOut(@RequestParam("token") String token);
}